//
// Created by keep on 17-10-6.
//

#ifndef ITCUARTSERVICE_COM_SERVICE_H
#define ITCUARTSERVICE_COM_SERVICE_H

#include <boost/locale.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/date_time.hpp>
#include <iostream>
#include <curl/curl.h>
#include <cstring>
#include <exception>
#include "base64.h"
#include "json/json.h"
#include "main.h"
using namespace boost;
using namespace std;
using namespace boost::locale::conv;
using namespace boost::gregorian;
using namespace boost::posix_time;

typedef struct local_params_st * local_params_t;
typedef struct local_params_st
{
    int   nStationId;  //出口收费站代码
    int   nLaneType;//车道类型
    int   nLaneId;	  //车道代码
    char  szTermNo[13];	//终端机编号,’\0’结束字符串
    char  bak[20];//备用
}LOCAL_PARAMS_ST;

int init(string & data);
int query_car_order_info(int fd, string & data);
int pos_trans(string & data);
int get_pos_version(string & data);
int get_pos_status(string & data);
#endif //ITCUARTSERVICE_COM_SERVICE_H
